import request from "@/utils/request";




export function searchdiseasesName(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/medical/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function add(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/medication/"+data.elderlyCode,
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/medication/"+params.elderlyCode,
    method: 'get',
    params

  });

}

// 查询老人入住记录
export function checkinhistory(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/checkinhistory/"+params.elderlyCode,
    method: 'get',
    params

  });

}


export function del(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/medication/"+params.elderlyCode+'/'+params.diseases+'/'+params.drugName,
    method: 'DELETE',
    params

  });

}
